package com.cloud.newRibbonImpl;

import com.xxl.job.core.biz.model.ReturnT;
import com.xxl.job.core.handler.annotation.XxlJob;
import org.springframework.stereotype.Component;

import java.util.Date;

/**
 * @author: create by God of SJF
 * @version: v1.0
 * @description: com.cloud.observer.example
 * @date:2021/7/28
 */

@Component
public class XxlJobTest {


    @XxlJob("TestHandler")
    public ReturnT<String> demoJobHandler(String param) throws Exception {
        System.out.println(new Date() + ",XXLJOB");
        return ReturnT.SUCCESS;
    }
}
